#include "stdafx.h"
qtUnity3d * m_mainWnd = NULL;
void SetMainWnd(qtUnity3d * mainWnd)
{
	m_mainWnd = mainWnd;
}

qtUnity3d *  GetMainWnd()
{
	return m_mainWnd;
}
QTreeView *  GetAtttibuteTree()
{
	return GetMainWnd()->GetAtttibuteTree();
}

QString ToQString(const ZMString& str)
{
	return QString::fromLocal8Bit(str.c_str());
}


ZMString ToString(const QString& str)
{
	return ZMString(str.toLocal8Bit());

}